import request from '@/utils/request'
export default {
  //获取秒杀地址
  getSeckillPath(id,code) {
    return request({
      url: `/seckill/seckill-order/getSeckillPath`,
      method: 'post',
      data: {
        "id": id,
        "code":code
      }
    })
  },

  //下单
  seckillProductOrder(id,path) {
    return request({
      url: `/seckill/seckill-order/generateOrder`,
      method: 'post',
      data: {
        "id": id,
        "path": path
      }
    })
  },

  //获取订单信息
  querySeckillProductById(orderId,productId){
    return request({
      url: `/seckill/seckill-order/querySeckillProductById`,
      method: 'post',
      data: {
        "orderId": orderId,
        "productId": productId
      }
    })
  }
}